home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 6940 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: alpine.valleynet.com!usenet
  2. From: jared@valleynet.com (Jared Still)
  3. Newsgroups: comp.lang.misc,comp.lang.perl.misc,comp.lang.tcl,comp.lang.c,comp.lang.java
  4. Subject: Re: Readable Perl (was: Re: Relative Speed of Perl vs. Tcl vs. C)
  5. Date: Fri, 16 Feb 1996 14:39:32 GMT
  6. Organization: ValleyNet Communications
  7. Message-ID: <4g23sv$dht@alpine.valleynet.com>
  8. References: <4e3a2u$eoa@wcap.centerline.com> <4e54vc$7sk@orac.mon.rnb.com> <4fjvh5$k83@news1.radix.net> <JTV2J.96Feb11120004@brunelleschi.cs.virginia.edu> <4fncgf$96e@solutions.solon.com> <JTV2J.96Feb12142743@mamba.cs.virginia.edu> <ukd97hwzkc.fsf_-_@linda.teleport.com>
  9. NNTP-Posting-Host: fresno1-19.valleynet.com
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. merlyn@stonehenge.com (Randal L. Schwartz) wrote:
  13.  
  14. >>>>>> "John" == John Viega <jtv2j@mamba.cs.virginia.edu> writes:
  15.  
  16. >John> People bitch about the readability of Perl non-stop.  In fact, I have
  17.  
  18. >OK, now which do you find most readable...
  19.  
  20. >    $i = 1;
  21. >    while ($i <= 10) {
  22. >        print "I can count to $i\n";
  23. >        $i++;
  24. >    }
  25.  
  26. .....
  27.  
  28. >    foreach $i (1..10) {
  29. >        print "I can count to $i\n";
  30. >    }
  31.  
  32. >Name: Randal L. Schwartz / Stonehenge Consulting Services (503)777-0095
  33.  
  34. None of the above.
  35.  
  36. I like my curly braces to line up.
  37.  
  38.     foreach $i (1..10) 
  39.     {
  40.         print "I can count to $i\n";
  41.     }
  42.  
  43.  
  44. Jared Still, Oracle DBA
  45. RxNet, Division of Value Health
  46. "All opinions are mine, not my employers"
  47. jared@valleynet.com
  48.  
  49.